home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / fly8111-.000 / fly8111- / fly8 / f8dis.h < prev    next >
C/C++ Source or Header  |  1979-12-31  |  4KB  |  191 lines

  1. /* --------------------------------- f8dis.h -------------------------------- */
  2.  
  3. /* This is part of the flight simulator 'fly8'.
  4.  * Author: Eyal Lebedinsky (eyal@ise.canberra.edu.au).
  5. */
  6.  
  7. /* This file under construction!
  8.  *
  9.  * Structures used by the DIS comms stuff.
  10.  * The section numbers refer to IST-CR-93-46:
  11.  *    Enumeration and Bit-encoded values for use with IEEE-1278.1-1994.
  12. */
  13.  
  14. #ifndef FLY8_DIS
  15. #define FLY8_DIS
  16.  
  17. /* 3.1 Protocol Version
  18. */
  19.  
  20. #define DISVER_DIS_PDU_1_0        1
  21. #define DISVER_IEEE_1278_1993        2
  22. #define DISVER_DIS_PDU_2_0        3
  23. #define DISVER_IEEE_1278_1_1994        4
  24.  
  25.  
  26. /* 3.2 PDU Type
  27. */
  28.  
  29. #define DISPDU_OTHER            0
  30. #define DISPDU_ENTITY_STATE        1
  31. #define DISPDU_FIRE            2
  32. #define DISPDU_DETONATION        3
  33. #define DISPDU_COLLISION        4
  34. #define DISPDU_SERVICE_REQUSET        5
  35. #define DISPDU_RESUPPLY_OFFER        6
  36. #define DISPDU_RESUPPLY_RECEIVED    7
  37. #define DISPDU_RESUPPLY_CANCEL        8
  38. #define DISPDU_REPAIR_COMPLETE        9
  39. #define DISPDU_REPAIR_RESPONSE        10
  40.  
  41. #define DISPDU_CREATE_ENTITY        11
  42. #define DISPDU_REMOVE_ENTITY        12
  43. #define DISPDU_START_RESUME        13
  44. #define DISPDU_STOP_FREEZE        14
  45. #define DISPDU_ACKNOWLEDGE        15
  46. #define DISPDU_ACTION_REQUEST        16
  47. #define DISPDU_ACTION_RESPONSE        17
  48. #define DISPDU_DATA_QUERY        18
  49. #define DISPDU_SET_DATA            19
  50. #define DISPDU_DATA            20
  51. #define DISPDU_EVENT_REPORT        21
  52. #define DISPDU_MESSAGE            22
  53. #define DISPDU_ELECTROMAGNETIC_EMISSION    23
  54. #define DISPDU_DESIGNATOR        24
  55. #define DISPDU_TRANSMITTER        25
  56. #define DISPDU_SIGNAL            26
  57. #define DISPDU_REVEIVER            27
  58.  
  59.  
  60. /* 3.3 Protocol Family
  61. */
  62.  
  63. #define DISFAM_OTHER                    0
  64. #define DISFAM_ENTITY_INFORMATION_INTERACTION        1
  65. #define DISFAM_WARFARE                    2
  66. #define DISFAM_LOGISTICS                3
  67. #define DISFAM_RADIO_COMMUNICATIONS            4
  68. #define DISFAM_SIMULATION_MANAGEMENT            5
  69. #define DISFAM_DISTRIBUTED_EMISSION_REGENERATION    6
  70.  
  71.  
  72. /* 4.1 Force ID
  73. */
  74.  
  75. #define DISFID_OTHER            0
  76. #define DISFID_FRIENDLY            1
  77. #define DISFID_OPPOSING            2
  78. #define DISFID_NEUTRAL            3
  79.  
  80.  
  81. /* 4.2.1 Entity Kind
  82. */
  83.  
  84. #define DISEKND_OTHER            0
  85. #define DISEKND_PLATFORM        1
  86. #define DISEKND_MUNITION        2
  87. #define DISEKND_LIFE_FORM        3
  88. #define DISEKND_ENVIRONMENTAL        4
  89. #define DISEKND_CULTURAL_FEATURE    5
  90. #define DISEKND_SUPPLY            6
  91. #define DISEKND_RADIO            7
  92.  
  93.  
  94. /* 4.2.1.1.1 Platform Domain
  95.  * This is used as the encoding for many other Domain fields.
  96. */
  97.  
  98. #define DISDOM_OTHER            0
  99. #define DISDOM_LAND            1
  100. #define DISDOM_AIR            2
  101. #define DISDOM_SURFACE            3
  102. #define DISDOM_SUBSURFACE        4
  103. #define DISDOM_SPACE            5
  104.  
  105.  
  106. /* 4.2.2 Country
  107. */
  108.  
  109. #define DISCRY_OTHER            0
  110. #define DISCRY_AUSTRALIA        13    /* The lucky country :-) */
  111.  
  112.  
  113. /* 4.4 Dead-Reckoning Algorithm
  114. */
  115.  
  116. #define DISDRA_OTHER            0
  117. #define DISDRA_STATIC            1
  118. #define DISDRA_DRM_FPW            2
  119. #define DISDRA_DRM_RPW            3
  120. #define DISDRA_DRM_RVW            4
  121. #define DISDRA_DRM_FVW            5
  122. #define DISDRA_DRM_FPB            6
  123. #define DISDRA_DRM_RPB            7
  124. #define DISDRA_DRM_RVB            8
  125. #define DISDRA_DRM_FVB            9
  126.  
  127.  
  128. /* 4.5 Entity Marking
  129. */
  130.  
  131. #define DISMCS_UNUSED            0
  132. #define DISMCS_ASCII            1
  133.  
  134.  
  135. /* 4.6 Entity Capabilities Record
  136. */
  137.  
  138. #define DISECAP_AMMUNITION_SUPPLY    0
  139. #define DISECAP_FUEL_SUPPLY        1
  140. #define DISECAP_RECOVERY        2
  141. #define DISECAP_REPAIR            3
  142.  
  143.  
  144. /* 4.7.2 Articulated Parts
  145. */
  146.  
  147. #define DISART_POSITION            1
  148. #define DISART_POSITION_RATE        2
  149. #define DISART_EXTENSION        3
  150. #define DISART_EXTENSION_RATE        4
  151. #define DISART_X            5
  152. #define DISART_X_RATE            6
  153. #define DISART_Y            7
  154. #define DISART_Y_RATE            8
  155. #define DISART_Z            9
  156. #define DISART_Z_RATE            10
  157. #define DISART_AZIMUTH            11
  158. #define DISART_AZIMUTH_RATE        12
  159. #define DISART_ELEVATION        13
  160. #define DISART_ELEVATION_RATE        14
  161. #define DISART_ROTATION            15
  162. #define DISART_ROTATION_RATE        16
  163.  
  164.  
  165. /* 6.1 Service Type
  166. */
  167.  
  168. #define DISSVC_OTHER            0
  169. #define DISSVC_RESUPPLY            1
  170. #define DISSVC_REPAIR            2
  171.  
  172.  
  173. /* 6.2.1 General Repair Code
  174. */
  175.  
  176. #define DISRPC_NO_REPAIRS        0
  177. #define DISRPC_ALL_REPAIRS        1
  178.  
  179.  
  180. /* 6.3 Repair Response PDU
  181. */
  182.  
  183. #define DISRPR_OTHER            0
  184. #define DISRPR_ENDED            1
  185. #define DISRPR_INVALID            2
  186. #define DISRPR_INTERRUPTED        3
  187. #define DISRPR_CANCELLED_BY_SUPPLIER    4
  188.  
  189.  
  190. #endif
  191.